package com.feri.rbacsys.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @TableName t_storecost
 */
@TableName(value = "t_storecost")
@Data
@NoArgsConstructor
public class Storecost implements Serializable {
    /**
     * 库存成本id
     */
    @TableId
    private Integer id;

    /**
     * 商品id
     */
    private Integer pid;

    /**
     * 单位
     */
    private String sku;

    /**
     * 仓库
     */
    private String storehouse;

    /**
     * 总库存
     */
    private Integer total;

    /**
     * 库存成本
     */
    private BigDecimal cost;

    public Storecost(Integer pid, String sku, String storehouse, Integer total, BigDecimal cost) {
        this.pid = pid;
        this.sku = sku;
        this.storehouse = storehouse;
        this.total = total;
        this.cost = cost;
    }
}